// 基础数据
const baseData = {
  state: {
    businessType: [{
      code: 'CYD',
      name: '车易贷'
    },
    {
      code: 'YDCD',
      name: '一点车贷'
    },
    {
      code: 'DZDC',
      name: '垫资代采'
    },
    {
      code: 'QCRZZP',
      name: '汽车融资租赁'
    },
    {
      code: 'OTHER',
      name: '其他'
    }],
    userType: [
      {
        code: '10ROOT',
        name: '总部'
      },
      {
        code: '20S_PROVICE',
        name: '省服务商'
      },
      {
        code: '30S_CITY',
        name: '市服务商'
      },
      {
        code: '40S_AREA',
        name: '区服务商'
      },
      {
        code: '50_SQD',
        name: '渠道商'
      }
    ],
    cleaners: [],
    qdservies: [],
    // 省
    province: [],
    provinceCode: [],
    cityCode: []
  },
  getters: {
    businessType: state => state.businessType,
    province: state => state.province,
    provinceCode: state => state.provinceCode,
    cityCode: state => state.cityCode,
    userType: state => state.userType,
    cleaners: state => state.cleaners,
    qdservies: state => state.qdservies
  },
  mutations: {
    province(state, payload) {
      state.province = payload
    },
    businessType(state, payload) {
      state.businessType = payload
    },
    userType(state, payload) {
      state.userType = payload
    },
    cleaners(state, payload) {
      state.cleaners = payload
    },
    qdservies(state, payload) {
      state.qdservies = payload
    }
  }
}
/**
 * 声明vuex中的几个模块，保证其可以全局使用
 */
export default baseData
